<template>
	<view>
		<view class="inv-h-ws">
			<view :class="['inv-hs',Inv==0?'inv-h-ses':'']" @click="Inv=0">
				<view class="tab-cen">
					<view>已启用</view>
				</view>
			</view>
			<view :class="['inv-hs',Inv==1?'inv-h-ses':'']" @click="Inv=1">
				<view class="tab-cen">
					<view>已停用</view>
				</view>
			</view>
			<view >
				<view class="tab-cens" @click="goEdit()">
					<u-icon name="plus" color="#333" size="26"></u-icon>
					<view>添加</view>
				</view>
			</view>
		</view>
		<view class="" v-show="Inv == 0">
			<view class="staff" v-for="(item,index) in staffList" :key="index" @click="goInformation()">
				<view class="da">{{item.name}}</view>
				<view class="num">
					+86- {{item.phone}}｜ {{item.position}} 				
				</view>
			</view>
		</view>
		<view class="" v-show="Inv == 1">
			<view class="staff staffs" v-for="(item,index) in staffList" :key="index">
				<view class="da das">{{item.name}}</view>
				<view class="num muns">
					+86- {{item.phone}}｜ {{item.position}} 				
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Inv: 0,
				staffList:[
					{
						name:'打酱油',
						phone:'18981808747',
						position:'高级管理员'
					},
					{
						name:'小河轻轻',
						phone:'18981808747',
						position:'高级管理员'
					}
				]
			}
		},
		methods: {
			changeTab(Inv) {
				that.navIdx = Inv;
			},
			//员工信息
			goInformation(){
				uni.navigateTo({
					url:'/pagesF/information/information'
				})
			},
			// 添加员工信息
			goEdit(){
				uni.navigateTo({
					url:'/pagesF/Addinformation/Addinformation'
				})
			}
		}
	}
</script>

<style lang="scss">
	.inv-h-ws {
		padding: 30rpx 20rpx 0 20rpx;
		border-bottom: 10rpx solid #E6E6E6;
		background-color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: space-between;
		
		.inv-hs {
			padding: 10rpx 0;
			color: #B4B4B4;
		}
		.inv-h-ses {
			font-weight: bold;
			border-bottom: 4rpx solid #00c6c2;
			color: #00C6C2;
		}
		.tab-cen {	
			
			view{
				font-size: 36rpx;
				font-family: PingFang;
				font-weight: 500;
			}
		}
		.tab-cens{
			display: flex;
			align-items: center;
			
			view{		
				font-size: 36rpx;
				font-family: PingFang;
				font-weight: 500;
				color: #282828;
			}
		}
	}
	
	.staff{
		padding:62rpx 24rpx 41rpx 24rpx;
		border-bottom: 1rpx solid #E6E6E6;
		
		.da{	
			font-size: 36rpx;
			font-family: PingFang;
			font-weight: 500;
			color: #282828;
		}
		.num{	
			margin-top: 22rpx;
			font-size: 28rpx;
			font-family: PingFang;
			font-weight: 500;
			color: #8A8A8A;
		}
		
	}
	.staffs{
		
		.das{
			color:#8A8A8A;
		}
		.nums{
			color:#8A8A8A;
		}
	}
	

	
</style>
